<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <!-- intoHead Start -->
        {include file="common/intohead" /}
        <!-- /intoHead End -->
    </head>
	<body class="mainbody">
		<!--导航栏-->
		{include file="common/position" /}
		<!--/导航栏-->

		<style>
			.ltable tr:hover {
			    background: #fff;
			}
		</style>

		<div class="line10"></div>

		<div id="floatHead" class="toolbar-wrap" style="height: 52px;">
			<div class="toolbar">
				<div class="box-wrap">
					<a class="menu-btn"></a>
					<div class="l-list">
						<ul class="icon-list">
							<li><a class="add" href="{:url('Access/add')}"><i></i><span>新增节点</span></a></li>
							<li><a class="all" href="javascript:;"><i></i><span>全选</span></a></li>
							<li><a data-ids="" id="btnDelete" class="isAllowed" data-url="{:url('Access/delNode')}"><i></i>批量删除</a></li>
						</ul>
					</div>
					<div class="r-list">
						<form action="" method="post">
							<input name="keyword" type="text" id="txtKeywords" class="keyword">
							<button id="lbtnSearch" class="btn-search" type="submit">查询</button>
						</form>
					</div>
				</div>
			</div>
		</div>

		<div class="builder-container">
			<div class="table-container">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
					<tbody>
						<tr class="odd_bg"> 
							<th>选择</th>
							<th >序号</th>
							<th >节点结构 [i]</th>
							<th >节点ID</th>
							<th >名称</th>
							<th >显示名</th>
							<th >排序名称</th>
							<th >类型</th>
							<th >状态</th>
							<th >是否显示</th>
							<th >操作</th>
						</tr>
						{volist name="list" id="vo" key="k"}
							<tr align="center" id="{$vo.id}" pid="{$vo.pid}">
								<td><span class="check-option r1 checkall"><input class="ids" type="checkbox" value="{$vo.id}" name="ids[]">
								</span></td>
								<td>{$k}</td>
								<p ><td class = "list_left">{$vo.fullname}</td></p>
								<td>{$vo.id}</td>
								<td class = "list_left">{$vo.name}</td>
								<td>{$vo.title}</td>
								<td>{$vo.sort}</td>
								<td>{$vo.level}</td>
								<td>{$vo.statusTxt}</td>
								<td>{$vo.is_displayTxt}</td>
								<td>
									[ {if condition="$vo['status']"}
									    <a href="{:url('Access/setstatus',array('status'=>'forbid','ids'=>$vo['id'],'model'=>'Access'))}" class="btn-xs btn-link ng-scope ng-isolate-scope delete">禁用</a>
									{else /} 
										<a href="{:url('Access/setstatus',array('status'=>'resume','ids'=>$vo['id'],'model'=>'Access'))}" class="btn-xs btn-link ng-scope ng-isolate-scope delete">启用</a>
									{/if} ]
									[　<a href="{:url('Access/edit',array('id'=>$vo['id']))}">编辑</a>　]
									[<a href="javascript:;" data-url="{:url('Access/delNode')}" data-ids="{$vo['id']}" class="check_a btn-xs btn-link isConfirm" style="background: #fff;border: none;cursor: pointer;">删除</a>]
								</td>
							</tr>
						{/volist}
					</tbody>
				</table>
			</div>
			<div class="line20"></div>
		<!--数据分页-->
		<div class="page-bootstrap"></div>
		</div>
	</body>
</html>